<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>建设单位--新建项目</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta http-equiv="Expires" CONTENT="0">
    <meta http-equiv="Cache-Control" content="no-siteapp,no-transform,no-store, no-cache, must-revalidate">
    <meta http-equiv="Pragma" content="no-cache">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="/static/css/font.css">
    <link rel="stylesheet" href="/static/css/weadmin.css">
    <script type="text/javascript" src="/lib/layui/layui.js" charset="utf-8"></script>
    <link rel="stylesheet" href="/static/css/buildUnit/common.css">
    <style>
        body {
            height: auto;
        }

        .content {
            padding: 20px;
        }
        .layui-container {
            padding-top: 20px;
            width: auto;;
        }

        /*单元格备注样式*/
        .layui-table td.tdBz {
            text-align: left;
            padding-left: 0;
            border-left: none;
            color: #aaa;
        }

        .padNone .layui-form-select .layui-input {
            padding-right: 0;
        }

        .hide {
            display: none;
        }
    </style>
</head>
<body>
<div class="layui-container">
    <form id="form" class="layui-form layui-form-pane" action="" lay-filter="example">
        <input type="hidden" name="prjId" class="formData" value="">
        <input type="hidden" name="id" class="formData" value="">

        <div class="layui-collapse">
            <div class="layui-colla-item">
                <h2 class="layui-colla-title">工程竣工验收监督记录（一）</h2>
                <div class="layui-colla-content layui-show">
                    <table class="layui-table">
                        <thead>
                        <tr>
                            <td width="30%">验收内容</td>
                            <td width="70%">检查情况</td>
                        </tr>
                        </thead>
                        <tbody>

                            <tr>
                                <td>质量控制资料及结构安全和主要使用功能抽查报告</td>
                                <td >
                                    <input name="leader" lay-verify="isEmpty" type="text"
                                           class="layui-input formData" placeholder="组长名称" autocomplete="off">
                                </td>
                            </tr>
                            <tr>
                                <td >观感质量验收</td>
                                <td ><input name="leader" lay-verify="isEmpty" type="text"
                                            class="layui-input formData" placeholder="组长名称" autocomplete="off">
                                </td>
                            </tr>
                            <tr>
                                <td>综合验收结论</td>
                                <td ><input name="leader" lay-verify="isEmpty" type="text"
                                            class="layui-input formData" placeholder="组长名称" autocomplete="off">
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <table class="layui-table">
                        <thead><tr>
                            <td>专家评价意见</td>
                        </tr></thead>
                        <tbody>
                        <tr>
                            <td >
                                <input name="leader" lay-verify="isEmpty" type="text"
                                       class="layui-input formData" placeholder="组长名称" autocomplete="off">
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>


        <div class="layui-collapse">
            <div class="layui-colla-item">
                <h2 class="layui-colla-title">工程竣工验收监督记录（二）</h2>
                <div class="layui-colla-content layui-show">
                    <table class="layui-table">
                        <thead>
                        <tr>
                            <td width="30%">监督内容</td>
                            <td width="70%">检查情况</td>
                        </tr>
                        </thead>
                        <tbody>

                        <tr>
                            <td>验收程序</td>
                            <td >
                                <input name="leader" lay-verify="isEmpty" type="text"
                                       class="layui-input formData" placeholder="组长名称" autocomplete="off">
                            </td>
                        </tr>
                        <tr>
                            <td >验收组织形式</td>
                            <td ><input name="leader" lay-verify="isEmpty" type="text"
                                        class="layui-input formData" placeholder="组长名称" autocomplete="off">
                            </td>
                        </tr>
                        <tr>
                            <td>执行验收标准情况</td>
                            <td ><input name="leader" lay-verify="isEmpty" type="text"
                                        class="layui-input formData" placeholder="组长名称" autocomplete="off">
                            </td>
                        </tr>
                        <tr>
                            <td>监督处理意见</td>
                            <td >
                                <input class="formData" type="radio" name="c1" value="1" title="1、未见异常"></br>
                                <input class="formData" type="radio" name="c1" value="2" title="2、责令建设单位组织相关单位处理发现问题并回复"></br>
                                <input class="formData" type="radio" name="c1" value="3" title="3、责令立即整改，并重新组织竣工验收"></br>
                                <input class="formData" type="checkbox" name="c1" value="4" title="建议处罚">
                            </td>
                        </tr>
                        <tr>
                            <td>监督人员</td>
                            <td ><input name="leader" lay-verify="isEmpty" type="text"
                                        class="layui-input formData" placeholder="组长名称" autocomplete="off">
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>

    </form>
</div>
<script src="/static/js/main.js"></script>
<script type="text/javascript">
    var $;
    layui.use(['jquery', 'element', 'form', 'laydate', 'configure', 'configureCom', 'selectFun', 'bluebird', 'replaceStr', 'jsDictFile', 'mapExtend'], function () {
        $ = layui.jquery;
        var element = layui.element;
        var form = layui.form;
        var configure = layui.configure;
        var table = layui.table;
        var configureCom = layui.configureCom;
        var laydate = layui.laydate;
        var selectFun = layui.selectFun;
        var sessionFun = layui.sessionFun;//存储session

        var prjId = sessionFun.get('prjId');

        configureCom.getAjax(configure.CPT_ACCEPTANCE_VIEW_API,{ prjId:prjId } ).then(function(res){
            if(!res.data){
                res.data = { prjId: prjId};
            }
            form.val('example', res.data);
        })

    });

    function getData() {
        return new Promise(function (res, rej) {
            var data = {};
            if (!window.formVerifyFun()) {
                //return false;
            }

            $('.formData').each(function (index, item) {
                var key = $(item).attr('name');
                data[key] = $(item).val();
            });
            res({result: data});
        });
    }

</script>
</body>
</html>
